/**
 * @file soc.c
 * @author Hello (you@domain.com)
 * @brief 
 * @version 0.1
 * @date 2021-09-12
 * 
 * @copyright Copyright (c) 2021
 * 
 */
#include <config.h>
#include <asm/global_data.h>

DECLARE_GLOBAL_DATA_PTR;

int dram_init(void)
{
    /* ram info */
    gd->ram_base = CONFIG_SYS_LOAD_ADDR;
    gd->ram_size = CONFIG_SYS_INIT_SP_ADDR - CONFIG_SYS_LOAD_ADDR;
	return 0;
}

#if 0
unsigned long get_tbclk(void)
{
    return 1000;
}
#endif

unsigned long timer_read_counter(void)
{
    static unsigned long count = 0;
    count++;
    return count/100;
}
